package top.z.work.module.system.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.z.work.framework.orm.core.BaseEntity;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 登录日志实体类
 *
 * @author zaoangod
 * @since 2024-07-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(value = "system_login_info")
public class SystemLoginInfo extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    // 数据ID
    @Id
    private Long          identity;
    // 登录账号
    private String        username;
    // 登录IP
    private String        ipAddress;
    // 用户代理
    private String        userAgent;
    // 登录状态(0.成功;1.失败)
    private Integer       status;
    // 操作信息
    private String        operation;
    // 创建时间
    private LocalDateTime loginTime;

}
